package com.lindroy.jetpacknotes.navigation

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.lindroy.jetpacknotes.R
import com.lindroy.jetpacknotes.extensions.launchAct
import com.lindroy.jetpacknotes.navigation.args.NavigationArgsActivity
import com.lindroy.jetpacknotes.navigation.deeplink.NavigationDeeplinkActivity
import com.lindroy.jetpacknotes.navigation.navigationui.NavigationUIActivity
import com.lindroy.jetpacknotes.navigation.simple.NavigationSimpleActivity
import kotlinx.android.synthetic.main.activity_navigation_category.*

class NavigationCategoryActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_navigation_category)
        btnSimple.setOnClickListener {
            launchAct<NavigationSimpleActivity>()
        }
        btnArgs.setOnClickListener {
            launchAct<NavigationArgsActivity>()
        }
        btnUI.setOnClickListener {
            launchAct<NavigationUIActivity>()
        }
        btnDeeplink.setOnClickListener {
            launchAct<NavigationDeeplinkActivity>()
        }
    }
}